import http from "../utils/http";

// 检查用户token是否过期
export function examineToken() {
    return http({
        url: '/users/examineToken',
        method: 'get'
    })
}

//查询当前用户信息
export function getUser(data) {
    return http({
        url: '/users/getUserOne',
        method: 'post',
        data: data
    })
}

//修改当前用户信息
export function editUserApi(data) {
    return http({
        url: '/users/editUser',
        method: 'post',
        data: data
    })
}

//上传背景音乐
export function uploadAudioApi(data) {
    return http({
        url: '/users/uploadAudio',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
